﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using Elasticsearch.Net;
using Nest;

namespace WindowsFormsApplication1
{
    public partial class Form4 : Form
    {
        public Form4()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            //var node = new Uri("http://localhost:9200");
            //var settings = new ConnectionSettings(node)
            //    .DefaultIndex("people");

            //var client = new ElasticClient(settings);

            //int i = (int) DateTime.Now.DayOfWeek;
            //MessageBox.Show(i.ToString());

            var i = 1;

            if (i == 0)
            {
                MessageBox.Show("aa");
            }
            else if (i==1)
            {
                MessageBox.Show("bb");
            }
            else if (i != -1)
            {
                MessageBox.Show("cc");
            }
            else
            {
                MessageBox.Show("dd");
            }
        }
    }

    public class Person
    {
        public int Id { get; set; }
        public string FirstName { get; set; }
        public string LastName { get; set; }
    }
}
